package com.xiaolin.algorithm.search.binary;

/**
 * @ClassName BinarySearchTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/17
 * @Version 1.0
 */
public class BinarySearchTest {
    public static void main(String[] args) {
        int[] arr=new int[]{1,2,5,8,14,18,42};
        BinarySearch binarySearch=new BinarySearch();
        System.out.println(binarySearch.search(arr,18));
    }
}
